#include <QPainter>

#include "UMLCanvas.h"

UMLCanvas::UMLCanvas(QWidget *parent)
	: QWidget(parent)
{
	setPalette(QPalette(QColor(255, 255, 255)));
	setAutoFillBackground(true);

	setMinimumSize(400, 400);
}

void UMLCanvas::paintEvent(QPaintEvent * /*event*/)
{
	QPainter painter(this);
	QRect cbox(10, 10, 80, 40);

	painter.setPen(Qt::SolidLine);
	painter.drawRect(cbox);
	painter.drawText(cbox, Qt::AlignHCenter | Qt::AlignTop, "CClass", NULL);
}

